/**
 * Created by python on 18-12-11.
 */
let app = new Vue({
    el:"#app",
    data:{
        spits:[],
        next_page: '',  // 下一页链接
        previous_page: '',  // 上一页链接
        count: 0, // 总条目数
    },
    computed:{


    },
    mounted:function () {
        axios.get(host+"/spits")
            .then(response =>{
                // console.log(response.data)
                this.spits = response.data.results
                this.next_page = response.data.next;
                this.previous_page = response.data.previous;
                this.count = response.data.count;
            })
            .catch(error =>{})

    },



})